<?php
require_once '../requires.php';

$cfg = array(
	'group' => 'test',
	'ttl' => 0,
	'caches' => array(
		'ArrayCache',
		'ApcCache',
	),
);
$c = new Cache($cfg);
$c->store('key', 'val');
var_dump($c->fetch('key'));
var_dump($c->fetch('key-not-exist')); //ok
$c->dump();

$c->delete('key-not-exist'); //ok
$c->delete('key');
$c->dump();

$c->clear();
?>